#!/bin/sh
#
# /*
# +-----------------------------------------------------------------------------+
# | $Id: __import_mysql.sh,v 1.0 2009/08/26 07:47:52Z Bleakwind $
# | Import Mysql For Unix
# | Copyright (c) 2003-2010 Bleakwind (www.weaverdream.com)
# | http://www.weaverdream.com/
# | Release under the GNU Lesser General Public License Version 3 (LGPLv3):
# |   http://www.gnu.org/licenses/lgpl.html
# +-----------------------------------------------------------------------------+
# */
#

sql_username=bleakwind
sql_password=bleakwind
sql_database=project_...
sql_filename=mysql.sql




echo "##############################"
echo "#    www.weaverdream.com     #"
echo "#      Please wait ...       #"
echo "##############################"

echo "Import SQL to ${sql_database}? [y/n]:"
read if_import
case $if_import in
    [Yy])
        echo "Start to import SQL..."
        /usr/local/bin/mysql -u${sql_username} -p${sql_password} --default-character-set=utf8 ${sql_database} < ./install/${sql_filename}
        echo "Import SQL successful..."
    ;;

    *)
        echo "SQL not import..."
    ;;
esac
